<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.baidu.ueditor.ActionEnter"
    pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%

    request.setCharacterEncoding( "utf-8" );
	response.setHeader("Content-Type" , "text/html");
	
	String rootPath = application.getRealPath( "/" );
	//String savePath= "D:/web/pic";
	//String savePath= "/home/hk002/image";
	//out.write( new ActionEnter( request, rootPath,savePath).exec() );

	String savePath = "";
	String address = System.getProperty("Env").toString();

	if(address.equals("local")||address.equals("uat")){
		savePath= "/root/home/image";
	}else {
		savePath= "/home/hk002/image";
	}
	System.out.println("pic save path =" + savePath);
	out.write( new ActionEnter( request, rootPath,savePath).exec() );

%>